package com.fr71.project.dm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fr71.framework.aspectj.lang.annotation.Excel;
import com.fr71.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 订单对象 pd_order
 *
 * @author devzwy
 * @date 2023-06-28
 */
public class PdOrder extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 订单号
     */
    @Excel(name = "订单号")
    private String orderId;

    /**
     * 订单类型
     */
    @Excel(name = "订单类型")
    private Integer orderType;

    /**
     * 订单状态
     */
    @Excel(name = "订单状态")
    private Integer orderStatus;

    /**
     * 订单金额
     */
    @Excel(name = "订单金额")
    private String price;

    /**
     * 商家订单号
     */
    @Excel(name = "商家订单号")
    private String tradeNo;

    /**
     * ip
     */
    @Excel(name = "ip")
    private String ip;

    /**
     * 绑定的数据
     */
    private String bindIp;

    /**
     * 绑定的数据
     */
    private Integer priceCode;

    /**
     * 绑定的数据
     */
    private String sCode;

    /**
     * 支付时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;

    /**
     * 支付数据
     */
    @Excel(name = "支付数据")
    private String payData;

    //新购 续费
    private String buyType;

    private String qq;

    //支付方式
    private String payType;


    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getBuyType() {
        return buyType;
    }

    public void setBuyType(String buyType) {
        this.buyType = buyType;
    }

    public String getsCode() {
        return sCode;
    }

    public void setsCode(String sCode) {
        this.sCode = sCode;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getPrice() {
        return price;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    public String getTradeNo() {
        return tradeNo;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getIp() {
        return ip;
    }

    public String getBindIp() {
        return bindIp;
    }

    public void setBindIp(String bindIp) {
        this.bindIp = bindIp;
    }

    public Integer getPriceCode() {
        return priceCode;
    }

    public void setPriceCode(Integer priceCode) {
        this.priceCode = priceCode;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayData(String payData) {
        this.payData = payData;
    }

    public String getPayData() {
        return payData;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("orderId", getOrderId())
                .append("orderType", getOrderType())
                .append("orderStatus", getOrderStatus())
                .append("price", getPrice())
                .append("tradeNo", getTradeNo())
                .append("ip", getIp())
                .append("bindIp", getBindIp())
                .append("priceCode", getPriceCode())
                .append("createTime", getCreateTime())
                .append("payTime", getPayTime())
                .append("payData", getPayData())
                .append("remark", getRemark())
                .toString();
    }
}
